package com.svms.service.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author om39a
 * 
 *         This method is used to handle the error codes for service
 */
public class ResultCodeVO implements Serializable {

	private Map<String, String> result = new HashMap<String, String>();

	public Map<String, String> getResult() {
		return result;
	}

	public void setResult(Map<String, String> result) {
		this.result = result;
	}

	private List<String> errorDetails;

	public List<String> getErrorDetails() {
		if (errorDetails == null) {
			errorDetails = new ArrayList<String>();
		}
		return errorDetails;
	}

	public void setErrorDetails(List<String> errorDetails) {
		getErrorDetails().addAll(errorDetails);

	}

	public void addErrorDetail(String errorDetail) {
		getErrorDetails().add(errorDetail);
	}

}
